package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 防护措施-OPC位号 实体类
 * 表名：risk_protection_opc_tag
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_protection_opc_tag")
public class RiskProtectionOpcTag implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 防护措施ID
     */
    @Column(name = "protection_id", nullable = false)
    private Long protectionId;
    
    /**
     * OPC位号ID
     */
    @Column(name = "opc_tag_id", nullable = false)
    private Long opcTagId;
    
    @Override
    public String toString() {
        return "RiskProtectionOpcTag{" +
            "id=" + id +
            ", protectionId=" + protectionId +
            ", opcTagId=" + opcTagId +
        '}';
    }
} 